<%@ page pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>准备餐食</title> 
<link rel="stylesheet" type="text/css" media="all"	href="<c:url value='/styles/layout.css'/>" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
</head>

<body leftmargin="0" topmargin="0">

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="44" class="home-content-title"><img src="images/home_ico_listTitle.gif" width="22" height="20" align="absmiddle">准备餐食</td>
  </tr>
  <logic:messagesPresent>
		<tr id="messagesPresentTrId" style="display:;">
			<td valign="top" class="black12" height="20">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
					<tr>
						<td class="arror_bg">
							<span class="arror_title">
						     您的操作存在如下错误：<br></span>
						     <html:errors/>
					    </td>
				    </tr>
			    </table>
			</td>
		</tr>
   </logic:messagesPresent>
    <tr id="messageShowTrId" style="display:none;">
	<td valign="top" class="black12">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
	<td class="arror_bg_s">
	<span class="arror_title_s"> 
        保存信息成功!<br/>
     </span>
    </td>
    </tr>
    </table>
	</td>
	</tr>
  <tr>
    <td height="40" class="home-search-space">&nbsp;<fmt:message key="common.warning"/></td>
  </tr>
  <tr>
    <td valign="top"> 
      <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="home-table-topline"> </td>
        </tr>
        <tr> 
          <td class="home-table-leftline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-tool-content">&nbsp;
			<%--<html:button styleClass="home-inputBtn" property="method.save" onclick="doCommit()">
            		保存	
			</html:button>--%>
			
			<input type="button" class="home-inputBtn" onclick="doCommit()" value="保存"
			<logic:messagesNotPresent>
			 <c:if test="${('savesubmit' eq param.method)  || ('2' eq param.type)}">disabled</c:if> 
  		   </logic:messagesNotPresent>
			 />
			
			<html:reset styleClass="home-inputBtn" onclick="doReset()">
            	重置		
			</html:reset>

			
			 <input type="button" class="home-inputBtn"  onclick="doSubmit()" value="保存并提交"
			 <logic:messagesNotPresent>
			 <c:if test="${('savesubmit' eq param.method)  || ('2' eq param.type)}">disabled</c:if>
			 </logic:messagesNotPresent>
			 />
			 
			 
			 
			 
			 
        		
		</td>
		
              </tr> 
              
                <td align="center" valign="top"/>
                 <%
                 
                 
                  %>
                 <c:import url="../../../vipServiceSheet.html?method=view&isInclude=yes&id=${vipServiceFoodForm.vipServiceSheetId}"/>
                </td>
             
                
              <tr>
                <td align="center" valign="top">&nbsp;</td>
              </tr>
              <tr> 
                <td valign="top" class="home-edittable-space"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                   <tr> 
                     <td class="home-table-tool-content">餐食准备记录</td>
               </tr>
                    <tr> 
                      <td>
               <html:form action="vipServiceFood" method="post" styleId="vipServiceFoodForm">   
               <html:hidden property="id"/>
               
		        <html:hidden property="vipServiceSheetId"/>
		   
                      <table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
			 <tr> 
			   <td width="16%" class="home-subtable-view-tdstyle-right">VIP餐食类别：</td>
                           <td width="20%" class="home-subtable-view-tdstyle-left">
				<html:select name="vipServiceFoodForm" property="provideFoodType" >
			  			<html:option value="1">VIP点心餐</html:option>
			  			<html:option value="2">VIP正餐</html:option>
			 			<html:option value="3">VVIP点心餐</html:option>
			   			<html:option value="4">VVIP正餐</html:option>
		      			<html:option value="5">其他特餐</html:option>
			  </html:select> 
			   </td>
                            <td width="16%" class="home-subtable-view-tdstyle-right"><font color="red">*</font>VIP配餐份数：</td>
                            <td width="20%" class="home-subtable-view-tdstyle-left">
                            <html:text name="vipServiceFoodForm" property="provideFoodSum" size="3" maxlength="3" />
                            </td>
                            <td width="18%" class="home-subtable-view-tdstyle-right"><font color="red">*</font>随行人员配餐份数：</td>
                            <td width="22%" class="home-subtable-view-tdstyle-left"> <html:text name="vipServiceFoodForm" property="provideFoodOtherSum" size="3" maxlength="3"/></td>
                          </tr>
                          <tr> 
                            <td width="20%" class="home-subtable-view-tdstyle-right">备注：</td>
                            <td colspan="10" class="home-subtable-view-tdstyle-left"><textarea name="provideFoodRemark" cols="74" rows="3" class="home-table-inputbox" ><c:out value="${vipServiceFoodForm.provideFoodRemark}"/></textarea></td>
                          </tr>
                        </table>
                        </html:form>
                        </td>
                    </tr>
                  </table> 
                </td>
              </tr>
            </table>
		  </td>
        </tr>
        <tr> 
          <td height="12">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-bottom-left">&nbsp;</td>
                <td class="home-table-bottom-bg">&nbsp;</td>
                <td class="home-table-bottom-right">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
	  </td>
  </tr>
  <tr>
    <td height="10">&nbsp;</td>
  </tr>
</table>
<script>
	function doCommit(){
		vipServiceFoodForm.method="post";
		vipServiceFoodForm.action="vipServiceFood.html?method=save&processinstid=<c:out value="${param.processinstid}"/>&workItemId=<c:out value="${param.workItemId}"/>&appId=<c:out value="${param.appId}"/>&vipServiceSheetId=<c:out value="${param.vipServiceSheetId}"/>";
		vipServiceFoodForm.submit();
	}
	function doSubmit(){
		vipServiceFoodForm.method="post";
		vipServiceFoodForm.action="vipServiceFood.html?method=savesubmit&processinstid=<c:out value="${param.processinstid}"/>&workItemId=<c:out value="${param.workItemId}"/>&appId=<c:out value="${param.appId}"/>&vipServiceSheetId=<c:out value="${param.vipServiceSheetId}"/>";
		vipServiceFoodForm.submit();
	}
	function doCancel(){
		vipServiceFoodForm.method="post";
		vipServiceFoodForm.action="vipServiceFood.html";
		vipServiceFoodForm.submit();
	}
	function doReset(){
       document.vipServiceFoodForm.reset()

	}
</script>
</body>
</html>
<script>
//保存信息处理 add by kellen
if("1"=='<c:out value="${flag}"/>'){
	//alert("保存信息成功!");
	var messageShowTrIdTd=document.getElementById("messageShowTrId");
	messageShowTrIdTd.style.display="";
	//window.location=window.location;  
}else if("-1"=='<c:out value="${flag}"/>'){
	alert("保存信息失败!");
	 
}else if("2" ==  '<c:out value="${flag}"/>'){
	//window.location=window.location;  
}
</script>

